var startDate = "",
      endDate = "";

//newTable对象
var table = new Table();
$(document).ready(function() {
	
	
	//表格加载的字段
    var cloumns = [
		    { 'data': 'id','render': function (data) {return '<input type="checkbox" data-id="' + data + '" name="">';}},
		    {'data': 'from'},
		    {'data': 'class_name'},
		    {'data': 'method_name'},
		    {'data': 'start_time'},
		    {'data': 'spend_time'},
		    {'data': 'err_msg'},
		    {'data': 'admin_name'},
		    {'data': 'id','render':function(data){return table.delBtn(data)}}
		  ];
    
    //初始化基本信息
    table.setting(basePath+"/log/getLogList",basePath+"/log/delLogs",cloumns);
	//调用表格分页
    table.tablePage()
	
	$('#search').on('click',function(){
		var params = {startDate:$('#startDate').val(),endDate:$('#endDate').val()};
		table.tablePage(params);
	});
});